<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body>
<div style="margin: 10px 2% 0px 2%;">
    <c:forEach items="${columns}" var="column1" end="2">
        <div style="float:left;width: 31%;border: 2px solid;margin-right: 0.9%;border-color: ${column1.cstyle}">
            <div style="height: 40px;width: 100%;background-color: ${column1.cstyle};text-align: left">
                <span style="color: #fff;font-size: 16px;margin-left: 10px;line-height: 40px">${column1.cname}</span>
            </div>
            <div style="width: 100%;font-size: 14px;margin-top: 10px">${column1.content}</div>
        </div>
    </c:forEach>
</div>
<div style="clear: both"></div>
<div style="margin: 10px 2% 0px 2%;">
    <c:forEach items="${columns}" var="column2" begin="3">
        <div style="float:left;width: 31%;border: 2px solid;margin-right: 0.9%;border-color: ${column2.cstyle}">
            <div style="height: 40px;width: 100%;background-color: ${column2.cstyle};text-align: left">
                <span style="color: #fff;font-size: 16px;margin-left: 10px;line-height: 40px">${column2.cname}</span>
            </div>
            <div style="width: 100%;font-size: 14px;margin-top: 10px">${column2.content}</div>
        </div>
    </c:forEach>
</div>
</body>
</html>